package com.common.log.service;

import com.sca.api.system.RemoteLogService;
import com.sca.api.system.domain.SysOperLog;
import com.sca.core.common.constant.SecurityConstants;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

/**
 * @Author: denglei
 * @Date: 2021/12/15 16:13
 * @Description:
 */
@Service
public class AnyscSysLogService {

    @Autowired
    private RemoteLogService remoteLogService;
    @Async
    public void saveLog(SysOperLog sysOperLog){
        remoteLogService.saveLog(sysOperLog, SecurityConstants.INNER);
    }
}
